// 路由

const routes = [
    {
      path: '/',
      name: 'Home',
      component: resolve => require(['../pages/Home'], resolve),
    },{
      path: '/category',
      name: 'Category',
      component: resolve => require(['../pages/Category'], resolve),
    },{
      path: '/archives',
      name: 'Archives',
      component: resolve => require(['../pages/Archives'], resolve),
    },{
      path: '/leavmess',
      name: 'Leavmess',
      component: resolve => require(['../pages/Leavmess'], resolve),
    },{
      path: '/mine-video',
      name: 'videos',
      component: resolve => require(['../pages/Videos'], resolve),
    },{
      path: '/abouts',
      name: 'Abouts',
      component: resolve => require(['../pages/Abouts'], resolve),
    },{
      path: '/view/:id.html',
      name: 'article',
      component: resolve => require(['../pages/Article'], resolve),
    },{
      path: '/category/:id?',
      name: 'category',
      component: resolve => require(['../pages/Category'], resolve),
    },{
      path: '*',
      redirect: '/'
    }
]

export default routes;